<ion-header>
    <ion-toolbar color="primary">
        <ion-buttons slot="start">
            <ion-back-button></ion-back-button>
        </ion-buttons>
        <ion-title>添加惠企走访</ion-title>
    </ion-toolbar>
</ion-header>

<ion-content>
    <ion-list>

        <ion-item>
            走访日期：
            <ion-datetime cancelText="取消" doneText="确定" [(ngModel)]="dvisitdate" slot="end"
                display-format="YYYY/MM/DD" min="2018-01-01" max="2028-12-30"
                value="2018-01-01T15:03:46.789" class="e2eOpenYYYYMMDD"></ion-datetime>
        </ion-item>
        <ion-item>
            <ion-label>企业名称</ion-label>
            <ion-select cancelText="取消" [(ngModel)]="iorgname" interface="action-sheet"
                placeholder="选择" (ngModelChange)="iorgnameChange()"
                selectedText="{{corgname}}">
                <ion-select-option *ngFor="let item of orgitems;let i=index"
                    value="{{item.iid}}">{{item.cname}}</ion-select-option>
                <!--<ion-select-option  value="1">{{orgitems[0].cname}}</ion-select-option>-->
            </ion-select>
        </ion-item>
        <ion-item>
            <ion-label>组织机构代码：</ion-label>
            <ion-input [(ngModel)]="cbankcode" clearInput></ion-input>
        </ion-item>
        <ion-item>
            <ion-label>企业类型：</ion-label>
            <ion-select cancelText="取消" interface="action-sheet" placeholder="选择"
                [(ngModel)]="icompanytype">
                <ion-select-option value="1">大型民营企业</ion-select-option>
                <ion-select-option value="2">中型民营企业</ion-select-option>
                <ion-select-option value="3">小微企业</ion-select-option>
                <ion-select-option value="4">个体工商户</ion-select-option>
            </ion-select>
        </ion-item>
        <ion-item>
            <ion-label>企业联系人：</ion-label>
            <ion-input [(ngModel)]="ccompanylinkname" clearInput></ion-input>
        </ion-item>
        <ion-item>
            <ion-label>企业联系方式：</ion-label>
            <ion-input [(ngModel)]="ccompanylinkphone" clearInput></ion-input>
        </ion-item>
        <ion-item>
            <ion-label>客户性质：</ion-label>
            <ion-select cancelText="取消" interface="action-sheet" placeholder="选择"
                [(ngModel)]="inature">
                <ion-select-option value="1">本行无贷户</ion-select-option>
                <ion-select-option value="2">本行有贷户</ion-select-option>
            </ion-select>
        </ion-item>
        <ion-item>
            <ion-label>企业经营及融资情况：</ion-label>
            <ion-textarea [(ngModel)]="cnow" clearInput></ion-textarea>
        </ion-item>
        <ion-item>
            <ion-label>新增融资需求和存在困难：</ion-label>
            <ion-textarea [(ngModel)]="cadd" clearInput></ion-textarea>
        </ion-item>
        <ion-item>
            <ion-label>能否解决：</ion-label>
            <ion-select cancelText="取消" interface="action-sheet" placeholder="选择"
                [(ngModel)]="isolve">
                <ion-select-option value="1">是</ion-select-option>
                <ion-select-option value="2">否</ion-select-option>

            </ion-select>
        </ion-item>
        <ion-item>
            <ion-label>解决方案：</ion-label>
            <ion-textarea [(ngModel)]="creason" clearInput></ion-textarea>
        </ion-item>
        <ion-item>
            <ion-label>融资需求最终解决情况：</ion-label>
            <ion-textarea [(ngModel)]="clast" clearInput></ion-textarea>
        </ion-item>
        <ion-item>
           
            <div id="test-div" [innerHtml]="data"></div>
            <!-- <div padding-top (click)="getPicture()">
                <ion-button src="assets/image/avatar.png"></ion-button>
            </div> -->
            <ion-buttons>
                <ion-icon (click)="getPicture()" name="add" size="large"></ion-icon>
            </ion-buttons>
        </ion-item>
    </ion-list>

    <ion-button id="savebtn" (click)="checkSave()" expand="full">保存</ion-button>
</ion-content>